package com.itawei.d4_threadmethod;

public class MyThread1 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            Thread t = Thread.currentThread();
            System.out.println(t.getName() + ":" + i);
        }
    }
}
